package org.eddm.rule;

import java.util.List;

public class RMultiplicity 
{
	String _elementName          = null;
	String _typeNode             = null;
	List<String> _validNeighbors = null;
	String _min                  = null;
	String _max                  = null;
	String _errorMessage         = null;
	
	
	/**
	 * 
	 * @param elementName
	 * @param typeNode - Can be source or target or null(don't care) 
	 * @param validNeighbors - List of valid neighbors
	 * @param min -  Minimum of nodes connected  
	 * @param max - Maximum of nodes connected
	 */
	RMultiplicity( String elementName, String typeNode, List<String> validNeighbors, String min, String max,
			       String errorMessage )
	{
		_elementName    = elementName;
		_typeNode       = typeNode;
		_validNeighbors = validNeighbors;
		_min            = min;
		_max            = max;
		_errorMessage   = errorMessage;
		
	}
}
